import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { BannerCategoryEntity } from '../../entity/category';
import { BannerCategoryService } from '../../service/category';

/**
 * 轮播图分类
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: BannerCategoryEntity,
  service: BannerCategoryService,
  pageQueryOp: {
    keyWordLikeFields: ['a.name'],
    fieldEq: ['a.status'],
  },
})
export class AdminBannerCategoryController extends BaseController {
  @Inject()
  bannerCategoryService: BannerCategoryService;
}
